struct MyData{
    pub name: String
}

fn print_name(ref my_data: MyData) {

    println!("name is :{}", my_data.name)
}
fn main() {
    let my_data = MyData{ name: "alan".to_string()};

    print_name(my_data);
    //println!("Hello {:?}", my_data.name);
}
